package com.chinasoft04.mall.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AuthMainTab {
    Integer id;
    String authName;
    String path;
    List<AuthMainTab> children;

    @Override
    public String toString() {
        if(children == null || children.size()==0)
            return "AuthMainTab{" +
                    "id=" + id +
                    ", authName='" + authName + '\'' +
                    ", path='" + path + '\'' +
                    '}';
        else return "AuthMainTab{" +
                "id=" + id +
                ", authName='" + authName + '\'' +
                ", path='" + path + '\'' +
                ", children=" + children +
                '}';
    }
}
